export default [
  {
    path: "/",
    redirect: "/login"
  },
  {
    // 登陆
    path: "/login",
    component: function(resolve) {
      require(["./components/login.vue"], resolve);
    }
  },
  {
    // 首页
    path: "/home",
    component: function(resolve) {
      require(["./components/home.vue"], resolve);
    },
    children: [
      {
        // 管理员设置
        path: "admin",
        component: function(resolve) {
          require(["./components/list/admin.vue"], resolve);
        }
      },
      {
        // 业务主管理
        path: "business",
        component: function(resolve) {
          require(["./components/list/business.vue"], resolve);
        }
      },
      {
        //  业务主管理 - 添加业务主
        path: "business/edit",
        component: function(resolve) {
          require(["./components/list/businessEdit.vue"], resolve);
        }
      },
      {
        //  用户管理
        path: "user",
        component: function(resolve) {
          require(["./components/list/user.vue"], resolve);
        }
      },
      {
        //  订单管理
        path: "orderForm",
        component: function(resolve) {
          require(["./components/list/orderForm.vue"], resolve);
        }
      },
      {
        //  订单管理 - 订单详情
        path: "orderForm/details",
        component: function(resolve) {
          require(["./components/list/orderDetails.vue"], resolve);
        }
      },
      {
        //  活动管理
        path: "activity",
        component: function(resolve) {
          require(["./components/list/activity.vue"], resolve);
        }
      },
      {
        //  活动管理 - 新增/编辑活动
        path: "activity/edit",
        component: function(resolve) {
          require(["./components/list/activityEdit.vue"], resolve);
        }
      },
      {
        //  活动管理 - 查看活动
        path: "activity/look",
        component: function(resolve) {
          require(["./components/list/activityLook.vue"], resolve);
        }
      },
      {
        //  任务管理
        path: "task",
        component: function(resolve) {
          require(["./components/list/task.vue"], resolve);
        }
      },
      {
        //  任务管理 - 新增/编辑任务
        path: "task/edit",
        component: function(resolve) {
          require(["./components/list/taskEdit.vue"], resolve);
        }
      },
      {
        //  任务管理 - 新增/编辑任务
        path: "task/CompileEdit",
        component: function(resolve) {
          require(["./components/list/taskCompileEdit.vue"], resolve);
        }
      },
      {
        //  积分管理
        path: "integral",
        component: function(resolve) {
          require(["./components/list/integral.vue"], resolve);
        }
      },
      {
        //  奖品管理
        path: "prize",
        component: function(resolve) {
          require(["./components/list/prize.vue"], resolve);
        }
      },
      {
        //  奖品管理 - 新增/编辑奖品
        path: "prize/edit",
        component: function(resolve) {
          require(["./components/list/prizeEdit.vue"], resolve);
        }
      },
      {
        //  奖品管理 - 新增/编辑奖品
        path: "prize/editCompile",
        component: function(resolve) {
          require(["./components/list/prizeEditCompile.vue"], resolve);
        }
      },
      {
        //  角色管理
        path: "jurisdiction",
        component: function(resolve) {
          require(["./components/list/jurisdiction.vue"], resolve);
        }
      },
      {
        //  角色管理 - 新增/编辑角色
        path: "jurisdiction/edit",
        component: function(resolve) {
          require(["./components/list/jurisdictionEdit.vue"], resolve);
        }
      },
      {
        //  账户管理
        path: "account",
        component: function(resolve) {
          require(["./components/list/account.vue"], resolve);
        }
      },
      {
        //  账户管理 - 新增/编辑账户
        path: "account/edit",
        component: function(resolve) {
          require(["./components/list/accountEdit.vue"], resolve);
        }
      },
      {
        //  群发消息
        path: "message",
        component: function(resolve) {
          require(["./components/list/message.vue"], resolve);
        }
      },
      {
        //  群发消息 - 新增/编辑消息
        path: "message/edit",
        component: function(resolve) {
          require(["./components/list/messageEdit.vue"], resolve);
        }
      },
      {
        //  群发消息 - 新增/编辑消息
        path: "message/CompileEdit",
        component: function(resolve) {
          require(["./components/list/messageCompileEdit.vue"], resolve);
        }
      },
      {
        //  应用管理
        path: "use",
        component: function(resolve) {
          require(["./components/list/use.vue"], resolve);
        }
      },
      {
        //  应用管理 - 新增应用管理
        path: "use/edit",
        component: function(resolve) {
          require(["./components/list/useEdit.vue"], resolve);
        }
      },
      {
        //  应用管理 - 编辑应用管理
        path: "use/editCompile",
        component: function(resolve) {
          require(["./components/list/useCompileEdit.vue"], resolve);
        }
      }
    ]
  }
];
